import React from 'react';
import {
    View,
    Text,
    TouchableOpacity
} from 'react-native';
export default class Login extends React.Component{
    constructor(props) {
        super(props);
    }
    render(){
        return (
            <View style={{flex:1,height:200,backgroundColor:'yellow', justifyContent:'center',alignItems:'center'}}>
                <Text>Login</Text>
                <TouchableOpacity onPress={()=>this.loginClick()}>
                    <Text>登录</Text>
                </TouchableOpacity>
            </View>
        )
    }
    loginClick(){
        this.props.navigation.navigate('Home')
    }
}
